package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户商家认证表
 * </p>
 *
 * @author lcc
 * @since 2020-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BmsUserBusinessAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer bmsUserId;

    /**
     * 店铺id
     */
    private Integer bmsBusinessId;

    /**
     * 手持身份证照片(正面)
     */
    private String idCardPoImg;

    /**
     * 手持身份证照片(背面)
     */
    private String idCardBaImg;

    /**
     * 营业执照类型（1：企业法人，2：个体工商户）
     */
    private Integer licenseType;

    /**
     * 注册号
     */
    private String licenseNo;

    /**
     * 名称
     */
    private String licenseName;

    /**
     * 营业执照开始时间
     */
    private LocalDateTime licenseStartTime;

    /**
     * 营业执照结束时间
     */
    private LocalDateTime licenseExpired;

    /**
     * 营业执照是否永久（1：永久）
     */
    private Integer isExpired;

    /**
     * 营业执照附件（图片）
     */
    private String licenseImg;

    /**
     * 证件类型：（1：身份证，2：护照，3：港澳通行证，4：台湾通行证）
     */
    private Integer identityType;

    /**
     * 法人姓名
     */
    private String identityName;

    /**
     * 证件号码
     */
    private String identityNo;

    /**
     * 身份证明开始时间
     */
    private LocalDateTime identityStartTime;

    /**
     * 身份证明有效期（默认为NULL，代表永久有效）
     */
    private LocalDateTime identityExpired;

    /**
     * 身份证是否永久（1：永久）
     */
    private Integer isIdentityExpired;

    /**
     * 身份证明附件(正面)
     */
    private String identityPoImg;

    /**
     * 身份证明附件(反面)
     */
    private String identityBaImg;

    /**
     * 1：已认领，2：已完成资质上传,3:审核成功，4：审核驳回
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime newTimes;

    /**
     * 审核时间
     */
    private LocalDateTime auditTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 审核状态：0：待审核；1：审核驳回；2：审核通过；
     */
    private Integer operateState;

    /**
     * 驳回理由
     */
    private String rejectReason;

    /**
     * 审核者ID
     */
    private String auditorId;

    /**
     * 提交预审核人ID
     */
    private String submitAuditId;

    /**
     * 提交预审核时间
     */
    private LocalDateTime submitAuditTime;

    /**
     * 预审核人ID
     */
    private String preAuditId;

    /**
     * 预审核时间
     */
    private LocalDateTime preAuditTime;

    /**
     * 预审核状态（0：待兼职管理员审核；1：兼职管理员驳回 2:兼职管理员审核通过）
     */
    private Integer preAuditStatus;

    /**
     * 预审核驳回理由
     */
    private String preRejectReason;

    /**
     * 资质信息是否完整（1：完整）
     */
    private Integer isFinished;

    /**
     * 店铺资质信息来源（0：移动端；1：后台；2：兼职；3：市场）
     */
    private Integer fromOrigin;

    /**
     * 市场资质ID
     */
    private Integer pazarId;


    public static final String ID = "id";

    public static final String BMS_USER_ID = "bms_user_id";

    public static final String BMS_BUSINESS_ID = "bms_business_id";

    public static final String ID_CARD_PO_IMG = "id_card_po_img";

    public static final String ID_CARD_BA_IMG = "id_card_ba_img";

    public static final String LICENSE_TYPE = "license_type";

    public static final String LICENSE_NO = "license_no";

    public static final String LICENSE_NAME = "license_name";

    public static final String LICENSE_START_TIME = "license_start_time";

    public static final String LICENSE_EXPIRED = "license_expired";

    public static final String IS_EXPIRED = "is_expired";

    public static final String LICENSE_IMG = "license_img";

    public static final String IDENTITY_TYPE = "identity_type";

    public static final String IDENTITY_NAME = "identity_name";

    public static final String IDENTITY_NO = "identity_no";

    public static final String IDENTITY_START_TIME = "identity_start_time";

    public static final String IDENTITY_EXPIRED = "identity_expired";

    public static final String IS_IDENTITY_EXPIRED = "is_identity_expired";

    public static final String IDENTITY_PO_IMG = "identity_po_img";

    public static final String IDENTITY_BA_IMG = "identity_ba_img";

    public static final String STATUS = "status";

    public static final String NEW_TIMES = "new_times";

    public static final String AUDIT_TIME = "audit_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String OPERATE_STATE = "operate_state";

    public static final String REJECT_REASON = "reject_reason";

    public static final String AUDITOR_ID = "auditor_id";

    public static final String SUBMIT_AUDIT_ID = "submit_audit_id";

    public static final String SUBMIT_AUDIT_TIME = "submit_audit_time";

    public static final String PRE_AUDIT_ID = "pre_audit_id";

    public static final String PRE_AUDIT_TIME = "pre_audit_time";

    public static final String PRE_AUDIT_STATUS = "pre_audit_status";

    public static final String PRE_REJECT_REASON = "pre_reject_reason";

    public static final String IS_FINISHED = "is_finished";

    public static final String FROM_ORIGIN = "from_origin";

    public static final String PAZAR_ID = "pazar_id";

}
